package com.exam.enums;

import lombok.Getter;

/**
 * Created by v
 * Date:2019/1/6
 * Time:20:23
 */
@Getter
public enum UserStatusEnum {

    USER_SUCCESS(0, "正确"),
    USER_VERIFYPASSWORD_ERROR(1, "两次密码不一致"),
    USER_CAPTCHA_ERROR(2, "验证码不正确"),
    USER_MESSAGE_ERROR(3, "短信验证码不正确"),
    USER_RESISTERED(4, "用户已经注册"),
    USER_NOT_REGISTER(5, "用户未注册"),
    USER_PASSWORD_ERROR(6, "用户密码不正确"),
    LOGOUT_SUCCESS(7, "登出成功"),
    USER_NOT_LOGIN(8, "用户未登录"),
    USER_NAME_EXIST(9, "用户名已经存在"),
    CODE_ERROR(10, "注册码不正确"),
    OLD_EMAIL_ERROR(11, "旧邮箱填写错误"),
    OLD_PHONE_ERROR(12, "旧手机号码不正确"),
    TRADE_ID_ERROR(13, "交易id不存在"),

    ;
    private Integer code;

    private String message;

    UserStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
